package com.eci.example.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExampleReq {

    @NotBlank(message="bu中文名不能为空")
    @ApiModelProperty(value = "bu中文名",required = true,example = "greek")
    @JsonProperty("name")
    private String name;

    @ApiModelProperty("id")
    @JsonProperty("id")
    private Long id;

    @ApiModelProperty("金额")
    @JsonProperty("amount")
    private Integer amount;

}
